package com.juno.cafenoa.introduce;

import android.app.Activity;
import android.content.Context;
import android.content.res.Configuration;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

import com.juno.cafenoa.R;
import com.juno.cafenoa.TopNavigatorView;
import com.juno.ui.viewflow.CafeIntroAdapter;
import com.juno.ui.viewflow.CircleFlowIndicator;
import com.juno.ui.viewflow.ViewFlow;

/**
 * 카페 소개하는 activity
 * 필요한 그림들은 추후 탑재 예정.
 * viewflow 이용하여 구성.
 * @author JUNHO
 */
public class CafeIntroActivity extends Activity {

	Context mContext;
	
	Button cafeIntroBtn;
	Button menuIntroBtn;
	Button orderTabBtn;
	Button couponTabBtn;
	
	ViewFlow viewFlow;
	
	LayoutInflater inflater;
	TopNavigatorView navi = null;
	
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_introduce_cafe);
		navi = (TopNavigatorView) findViewById(R.id.navi_cafe_intro);
		navi.init("Introduce Cafe");
		
		//정의된 viewflow 불러옴.
		viewFlow = (ViewFlow) findViewById(R.id.cafeIntro_ViewFlow);
		//adapter set.
		viewFlow.setAdapter(new CafeIntroAdapter(this), 0);
		
		//상단에 표시될 indicator
		CircleFlowIndicator cIndicateor = (CircleFlowIndicator) findViewById(R.id.Cafe_Intro_CircleIndicator);
		viewFlow.setFlowIndicator(cIndicateor);
		//viewflow에 set. 
	}	
	
	@Override
	public void onConfigurationChanged(Configuration newConfig) {
		super.onConfigurationChanged(newConfig);
		viewFlow.onConfigurationChanged(newConfig);
	}
}
